<%@page import="weaver.workflow.workflow.WfRightManager"%>
<%@page import="weaver.hrm.HrmUserVarify"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> 
<%@ page import="weaver.general.Util" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ taglib uri="/browserTag" prefix="brow"%>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page"/>
<%
	WfRightManager wfrm = new WfRightManager();
	boolean hasPermission = wfrm.hasPermission2(0, user, WfRightManager.OPERATION_CREATEDIR);

	if(!HrmUserVarify.checkUserRight("WorkflowManage:All", user) && !hasPermission)
	{
		response.sendRedirect("/notice/noright.jsp");    	
		return;
	}
%>
<%
	String perpage ="10";
	String imagefilename = "/images/hdReport_wev8.gif";
	String titlename = "HRM数据同步";
	String needfav ="1";
	String needhelp ="";
	
	/*
	<wea:item>清空HR信息</wea:item>
	<wea:item>
		<div>
			<input id="cleanBtn" type="button" value="执行清空" class="e8_btn_top" onclick="cleanHRInfo()"/>
			<span id="cleanMsg"></span>
			<img id="cleanImg" src="/westvalley/synHrmData/img/loading.gif" style="display:none" title="执行清空中....." />
		</div>
	</wea:item>
	 */

	
%>
<HTML>
	<HEAD>
		<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
		<script language="javascript" src="/js/weaver_wev8.js"></script>
		<script language="javascript" defer="defer" src="/js/datetime_wev8.js"></script>
		<script language="javascript" defer="defer" src="/js/JSDateTime/WdatePicker_wev8.js"></script>
		<script language="javascript" defer="defer" src="/westvalley/common/js/common.js"></script>
		<script language="javascript" defer="defer" src="/westvalley/synHrmData/js/init.js"></script>
		<script language=javascript> 
		</script>
	</head>
	<BODY>
		<%@ include file = "/systeminfo/TopTitle_wev8.jsp" %>
		<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
		<%
			//RCMenu += "{全部同步,javascript:synAllNCData(),_self} " ;
			//RCMenuHeight += RCMenuHeightStep ;
		%>	
		<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
		<jsp:include page="/systeminfo/commonTabHead.jsp">
		   <jsp:param name="mouldID" value="assest"/>
		   <jsp:param name="navName" value="<%=titlename %>"/>
		</jsp:include>
		<table id="topTitle" cellpadding="0" cellspacing="0">
			<tr>
				<td>
				</td>
				<td class="rightSearchSpan" style="text-align:right;">
					<!-- <input type="button" value="全部同步" class="e8_btn_top"  onclick="synAllNCData()"/> -->
					<span title="<%=SystemEnv.getHtmlLabelName(23036,user.getLanguage())%>" class="cornerMenu"></span>
				</td>
			</tr>
		</table>
		<div>
		<form id="frmmain" name=frmmain method=post action="" >
			<wea:layout type="2col" attributes="{expandAllGroup:true}">
				<wea:group context="同步列表">
					<wea:item>分部同步</wea:item>
					<wea:item>
						<div>
							<input id="subcompanyBtn" type="button" value="同步" class="e8_btn_top" onclick="synSubCompany()"/>
							<span id="subcompanyMsg"></span>
							<img id="subcompanyImg" src="/westvalley/synHrmData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>部门同步</wea:item>
					<wea:item>
						<div>
							<input id="departmentBtn" type="button" value="同步" class="e8_btn_top" onclick="synDepartment()"/>
							<span id="departmentMsg"></span>
							<img id="departmentImg" src="/westvalley/synHrmData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>职务组同步</wea:item>
					<wea:item>
						<div>
							<input id="jobGroupsBtn" type="button" value="同步" class="e8_btn_top" onclick="synJobGroups()"/>
							<span id="jobGroupsMsg"></span>
							<img id="jobGroupsImg" src="/westvalley/synHrmData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>职务同步</wea:item>
					<wea:item>
						<div>
							<input id="jobActivitiesBtn" type="button" value="同步" class="e8_btn_top" onclick="synJobActivities()"/>
							<span id="jobActivitiesMsg"></span>
							<img id="jobActivitiesImg" src="/westvalley/synHrmData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>岗位模板同步</wea:item>
					<wea:item>
						<div>
							<input id="jobTitleTempletBtn" type="button" value="同步" class="e8_btn_top" onclick="synJobTitleTemplet()"/>
							<span id="jobTitleTempletMsg"></span>
							<img id="jobTitleTempletImg" src="/westvalley/synHrmData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>岗位同步</wea:item>
					<wea:item>
						<div>
							<input id="jobTitleBtn" type="button" value="同步" class="e8_btn_top" onclick="synJobTitle()"/>
							<span id="jobTitleMsg"></span>
							<img id="jobTitleImg" src="/westvalley/synHrmData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>人员同步</wea:item>
					<wea:item>
						<div>
							<input id="resourceBtn" type="button" value="同步" class="e8_btn_top" onclick="synResource()"/>
							<span id="resourceMsg"></span>
							<img id="resourceImg" src="/westvalley/synHrmData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
				</wea:group>
			</wea:layout>
		</form>	
		</div>
	</body>
</HTML>